#include "StdAfx.h"
#include ".\neuralnetonelayer.h"
#include "Layer.h"

void Test()
{
	NeuralNetOneLayer<NnetLayer<2, 2, 1, 0> > net1;
	NeuralNetOneLayer<NnetLayer<2, 2, 1, 1> > net2;
	NeuralNetOneLayer<NnetLayer<2, 2, 0, 0> > net3;
	NeuralNetOneLayer<NnetLayer<2, 2, 0, 1> > net4;

	double arrLfInputs[] = { 1.0, 2.0};
	double arrLfDesiredOuts[] = {1.0, 2.0};
	double arrLfScratch2[] = {0.0, 0.0};

	net1.Eval(arrLfInputs);
	net2.Eval(arrLfInputs);
	net3.Eval(arrLfInputs);
	net4.Eval(arrLfInputs);

	net1.Train(arrLfInputs, arrLfDesiredOuts, arrLfScratch2);
	net2.Train(arrLfInputs, arrLfDesiredOuts, arrLfScratch2);
	net3.Train(arrLfInputs, arrLfDesiredOuts, arrLfScratch2);
	net4.Train(arrLfInputs, arrLfDesiredOuts, arrLfScratch2);
}